/*
 *  Copyright (c) 2022 李伟国
 *  online-judge is licensed under Mulan PSL v2.
 *  You can use this software according to the terms and conditions of the Mulan PSL v2.
 *  You may obtain a copy of Mulan PSL v2 at:
 *          http://license.coscl.org.cn/MulanPSL2
 *  THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
 *  See the Mulan PSL v2 for more details.
 */

package edu.platform.service;

import java.util.List;

public interface IJudgeService {
    /**
     * 对源代码进行测试，获取运行结果
     * @param filePath 文件路径
     * @return 运行结果
     */
    public List<Object> Running(String filePath);

    /**
     * 创建源代码文件
     *
     * @param code 代码
     * @param filePrefix 文件前缀  Main
     * @param fileSuffix 文件后缀 .java
     * @return 文件名称
     */
    public String createFile(String code,String filePrefix,String fileSuffix);
}
